<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="../css/layui.css">
		 <script type="text/javascript" src="../js/jquery.min.js"></script>
		 <script type="text/javascript" src="../js/layui.all.js"></script>
		<link rel="stylesheet" href="../css/loginAndRegister.css">	
		<script type="text/javascript"  src="../js/register.js"> </script>
		<script type="text/javascript"  src="../js/regular.js"> </script>
	</head>
	<body class="layui-bg-gray">
		<div class="layui-bg-blue" id="top" >
		<a href="http://localhost:8080/index.html">欢迎使用瑜伽APP</a>
		</div>
<div class="layui-tab layui-tab-brief" lay-filter="demo">
  <ul class="layui-tab-title">
    <li class="layui-this">手机注册</li>
    <li>个性注册</li>
    <li>邮箱注册</li>
    <li><a href="../index.html">返回登录</a></li>

  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">		
	 <div id="login">手机注册</div>
	  <div class="centerBox">
	<input type="text"  placeholder="请输入注册账号" id="account1" onkeyup="phoneCheck()"/>
	<p><span id="judge1"></span></p>
	  <input type="password"  placeholder="请输入注册密码" id="password1"/>
	  <input type="password"  placeholder="再次输入密码"  id="password2" onkeyup="validate1()"/>
	  <p ><span id="tishi1"></span></p>
	  <button onclick="creatYZM()" type="button">点击获取验证码</button>
	  <input type="text"  placeholder="请输入验证码" id="sryzm" />
	  <input class="select" type="radio" name="character" value="student"/>学生
	  <input class="select" type="radio" name="character" value="coach"/>教练
	  <input class="select" type="radio" name="character" value="gym"/>场馆	  
	  <button id="button1" onclick="confirmYZM()" type="button">注册</button>
		</div>
	</div>
    <div class="layui-tab-item">
	  <div id="login">个性注册</div>
	  <div class="centerBox">
	<input type="text"  placeholder="请输入注册账号" id="account"/>
	  <input type="password"  placeholder="请输入注册密码" id="password3"/>
	  <input type="password"  placeholder="再次输入密码"  id="password4" onkeyup="validate()"/>
	  <p ><span id="tishi2"></span></p>
	  <div style="margin-top:20px"><img src="/PictureCode/loginCode" class="loginImgCode"></div>
	  <input type="text"  placeholder="请输入验证码" id="loginCode" />
	  <input class="select" type="radio" name="character" value="student"/>学生
	  <input class="select" type="radio" name="character" value="coach"/>教练
	  <input class="select" type="radio" name="character" value="gym"/>场馆	  
	  <button id="button2" onclick="register()" type="button">注册</button>
	  </div>
		
	</div>
    <div class="layui-tab-item">
	  <div id="login">邮箱注册</div>
	  <div class="centerBox">
	  <input type="text" id="mail" name="mail" placeholder="请输入注册账号" onkeyup="ischeckemail()"/>
	  <p><span id="judge2"></span></p>
	  <input type="password" id="password5" placeholder="请输入注册密码"/>	  
	  <input type="password" id="password6" placeholder="再次输入密码" onkeyup="validate3()"/>
	  <p ><span id="tishi3"></span></p>
	  <button onclick="sendMail()" type="button">点击获取验证码</button>	
	  <input type="text" id="number"  placeholder="请输入验证码"/>
	  <input class="select" type="radio" name="character" value="student"/>学生
	  <input class="select" type="radio" name="character" value="coach"/>教练
	  <input class="select" type="radio" name="character" value="gym"/>场馆	  
	  <button id="button3" onclick="mailRegister()" type="button">注册</button>			
	</div>
  </div>
</div>
</div>		

	</body>

</html>
